package com.haiheng.common.bean

import com.google.gson.Gson
import com.haiheng.library_base.http.HttpResponse
import com.haiheng.library_base.utils.FileUtils

/**
 *
 * @Des: 用户数据实体类
 * @Author: hwz
 * @Date:2022/4/18 0018
 * @Version: 1.0
 */
data class  LoginBean(
    val data:UserBean? = null
) : HttpResponse()
data class RegisterBean(
    val data: UserBean? = null
):HttpResponse()

data class UserBean @JvmOverloads constructor(
    val id:String = "",
    val name:String = "",
) {
    fun toJson():String{
        return Gson().toJson(this)
    }
}